-- GENERATED SPELL FOR [Bristlelimb Windcaller] --


function spell0_17184(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(32131,pUnit)
pUnit:RegisterEvent('Sorts_17184', 12000, 1)
end

function spell1_17184(pUnit, Event) --@Wind Shock,n/a--
pUnit:FullCastSpellOnTarget(31272,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17184', 10000, 1)
end

function Sorts_17184(pUnit, Event)
local choix_sorts_17184 = math.random(0, 1)
if choix_sorts_17184 == 0 then
pUnit:RegisterEvent('spell0_17184', 1, 1)
end
if choix_sorts_17184 == 1 then
pUnit:RegisterEvent('spell1_17184', 1, 1)
end
end

function mob17184_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17184', math.random(1500, 3000), 1)
end

function mob17184_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17184_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17184_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17184, 1, 'mob17184_Action')
RegisterUnitEvent(17184, 2, 'mob17184_Leave')
RegisterUnitEvent(17184, 3, 'mob17184_Kill')
RegisterUnitEvent(17184, 4, 'mob17184_Die')
